﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Tunynet;
using Tunynet.Common;
using PetaPoco;
using Tunynet.Caching;
using Tunynet.Utilities;
using Spacebuilder.Common;

namespace Spacebuilder.Common
{
    /// <summary>
    /// 短信模版
    /// </summary>
    [TableName("tn_SmsTemplates")]
    [PrimaryKey("id", autoIncrement = true)]
    [CacheSetting(true)]
    [Serializable]
    public class SmsTemplates : SerializablePropertiesBase, IEntity
    {

        /// <summary>
        /// 新建实体时使用
        /// </summary>
        public static SmsTemplates New()
        {
            SmsTemplates smstemplates = new SmsTemplates();
            return smstemplates;
        }

        /// <summary>
        /// ID
        /// </summary>
        public int id { get; set; }

        /// <summary>
        /// 短信平台
        /// </summary>
        public int SmsSettingsId { get; set; }

        /// <summary>
        /// 模版名称
        /// </summary>
        public string TemplateName { get; set; }
        /// <summary>
        /// 模版内容
        /// </summary>
        public string TemplateValue { get; set; }

        #region IEntity 成员

        object IEntity.EntityId { get { return this.id; } }

        bool IEntity.IsDeletedInDatabase { get; set; }

        #endregion   

    }
}
